package cn.gson.crm.model.pojos;

import javax.persistence.*;
import java.sql.Time;
import java.util.Objects;

@Entity
@Table(name = "Checkt_", schema = "CRM", catalog = "")
public class Checkt {
    private long checktId;
    private Long checkId;
    private String checktType;
    private String checktName;
    private Time checktTime;

    @Id
    @Column(name = "Checkt_id")
    public long getChecktId() {
        return checktId;
    }

    public void setChecktId(long checktId) {
        this.checktId = checktId;
    }

    @Basic
    @Column(name = "Check_id")
    public Long getCheckId() {
        return checkId;
    }

    public void setCheckId(Long checkId) {
        this.checkId = checkId;
    }

    @Basic
    @Column(name = "Checkt_type")
    public String getChecktType() {
        return checktType;
    }

    public void setChecktType(String checktType) {
        this.checktType = checktType;
    }

    @Basic
    @Column(name = "Checkt_name")
    public String getChecktName() {
        return checktName;
    }

    public void setChecktName(String checktName) {
        this.checktName = checktName;
    }

    @Basic
    @Column(name = "Checkt_time")
    public Time getChecktTime() {
        return checktTime;
    }

    public void setChecktTime(Time checktTime) {
        this.checktTime = checktTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Checkt checkt = (Checkt) o;
        return checktId == checkt.checktId &&
                Objects.equals(checkId, checkt.checkId) &&
                Objects.equals(checktType, checkt.checktType) &&
                Objects.equals(checktName, checkt.checktName) &&
                Objects.equals(checktTime, checkt.checktTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(checktId, checkId, checktType, checktName, checktTime);
    }
}
